public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(1);
        myLinkedList.display();
        //myLinkedList.removeAllKey(1);
        myLinkedList.addIndex(0,99);
       // myLinkedList.removeList(1);
        myLinkedList.display();
    }

    public static void main1(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        //System.out.println(myLinkedList.size());
        myLinkedList.display();
        //System.out.println(myLinkedList.contains(1));
        myLinkedList.addLast(11);
        myLinkedList.addLast(12);
        myLinkedList.display();

    }
}
